<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<link rel="stylesheet" href="{{ asset('assets/style/css/ch-ui.admin.css') }}">
	<link rel="stylesheet" href="{{ asset('assets/style/font/css/font-awesome.min.css') }}">
</head>
<body style="background:#F3F3F4;">
	<div class="login_box">
		<h1>Blog</h1>
		<h2>欢迎使用博客管理平台</h2>
		<div class="form">
			@if(session('msg'))
				<p style="color:red">{{ session('msg') }}</p>
			@endif
			<form action="" method="post" >
				<ul>
					<li>
					<input type="text" name="username" class="text"/>
						<span><i class="fa fa-user"></i></span>
					</li>
					<li>
						<input type="password" name="password" class="text"/>
						<span><i class="fa fa-lock"></i></span>
					</li>
					<li>
						<input type="text" class="code" name="code"/>
						<span><i class="fa fa-check-square-o"></i></span>
						<img src="#" alt="点击切换验证码"  name="captcha" >
					</li>
					<li>
						<input type="submit" value="立即登陆"/>
					</li>
				</ul>
				{{ csrf_field() }}
			</form>
			<p><a href="#">返回首页</a> &copy; 2016 Powered by <a href="http://www.houdunwang.com" target="_blank">http://www.houdunwang.com</a></p>
		</div>
	</div>
</body>
<script type="text/javascript" src="{{ asset('assets/style/js/jquery.js') }}" ></script>
<script type="text/javascript">
	$(function(){
	    $("[name=captcha]").attr('src',"{{ route('gen_code') }}" + '?' + Math.random() );
	})
	$("[name=captcha]").click(function(){
        $("[name=captcha]").attr('src',"{{ route('gen_code') }}" + '?' + Math.random() );
	});
</script>
</html>